package com.wmlive.hhvideo.heihei.beans.subject;

import android.os.Parcel;
import android.os.Parcelable;


/**
 * 第三方话题类
 * Created by kangzhen on 2017/6/6.
 */

public class TopicInfo implements Parcelable {
    public static final String INTENT_EXTRA_KEY_NAME = "hot_topic";
    public String mstrTopic;
    public String mstrText;
    public Long mTopicId;

    public String getMstrTopic() {
        return mstrTopic;
    }

    public void setMstrTopic(String mstrTopic) {
        this.mstrTopic = mstrTopic;
    }

    public String getMstrText() {
        return mstrText;
    }

    public void setMstrText(String mstrText) {
        this.mstrText = mstrText;
    }


    public Long getmTopicId() {
        return mTopicId;
    }

    public void setmTopicId(Long mTopicId) {
        this.mTopicId = mTopicId;
    }


    public TopicInfo() {
    }


    public TopicInfo(String mstrTopic, String mstrText, Long mTopicId) {
        this.mstrTopic = mstrTopic;
        this.mstrText = mstrText;
        this.mTopicId = mTopicId;
    }

    public TopicInfo(Parcel in) {
        this.mstrTopic = in.readString();
        this.mstrText = in.readString();
        this.mTopicId = in.readLong();
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.mstrTopic);
        dest.writeString(this.mstrText);
        dest.writeLong(this.mTopicId);
    }
    public static final Creator<TopicInfo> CREATOR = new Creator<TopicInfo>() {
        @Override
        public TopicInfo createFromParcel(Parcel parcel) {
            return new TopicInfo(parcel);
        }

        @Override
        public TopicInfo[] newArray(int size) {
            return new TopicInfo[size];
        }
    };
}
